A time signature of 4/4 means counts of 4 quarter notes to each bar. So the beat is counted 1, 2, 3, 4 -1, 2, 3, 4, and so on. That means all the notes in every bar must add up to 4 quarter notes.