A team may have five skaters and a goalie on the ice at one time. The lesson shows a team with all five skaters on the ice when another player jumps over the boards. That makes too many players on the ice. The official blows the whistle and gives a bench minor penalty. One player, chosen by the coach, sits in the penalty box for two minutes.
This penalty is about changes, not fouls against an opponent. A line change is legal only when the player leaving is close to the bench and the new player does not join the play until the old one is off. Coaches should teach players to look at the bench, wait for their teammate and count heads. Parents can see why shifts are called out loudly. Younger levels may handle this differently, and rules can differ by league.