Just to get you started:


if (num >= 1 && num <= 10)
count[0];

What did you intend with the count array? At the moment it isn't a proper statement. It needs something done to it, like...