Balls that are purchased have durability attached to them. The amount of hits that you get is dependent on this.
When the meter runs out the ball is automatically replaced with the same kind of ball or the starter ball if you have no more 'purchased' balls of the same type and colour.
Hitting the ball O.B. or in the water costs a ball as well.
Happy hitting