Amir had $19 to spend at the carnival for admission and rides. If he paid $5 for admission, and rides cost $3 each, what is the maximum number of rides he could go on?