In baseball, three strikes and you're out, i.e., basically you can take up to three swings at the ball pitched to you and fail on each. One such failure is a strike. Three strikes and you get no more chances. The next batter is up.
Counting strikes is often done by parents who are threating their children with some physical retribution for misbehavior. After the third strike comes t