In the for loop you use a variable named count:
for (int i=0; i<count; i++) What is the value of count? Where does it get set? If you don't set it then the default value would be 0, and the for loop would not be executed.
p.s. I modified your post to add code tags. Pleas read this:
UseCodeTags so your future posts with code in it will be displayed in a format easier to read.>