How many thirty one-day months are there in a year?

You could get a calendar and count them.

Or you could get them by subtracting the ones that do not have 31 from 12.

They are given in the popular rhyme

"Thirty days has September, April, June and November, all the rest have 31 except February"