This is a simple array example using a foreach loop
2 Adam.
3 Dave.
1 John.