You have to compare the userinput with the names of the months. I would suggest using a string array that holds all the names of months, and then use a loop with counter i to check every element of that array, and if array[i]==userinput returns true i+1 is the month.
If the month is equal to months[i], the program updates the variable count by one. If the user inputs a correct name, this will happen one time, so it would return 1. This is what you need:
1 2
if (month == months[i])
count=i+1; //+1 since i starts at 0