You have a couple problems to solve here.
You have to loop through each user and do a count for the number of items. Depending on your database structure this could be done any number of ways.
If you want to convert the users into an array I suggest taking a look at these tutorials
http://www.visualbasictutorial.net/arrays/