In a class, no two boys were born on the same day of the week and no two girls were born in the same month.

Were a new boy or a new girl to join this class, one of these two conditions would no longer be true.

Question:

How many children are there in the class?