CSS animation-iteration-count Property
The animation will run 3 times before it stops: