Hazel bought cupcakes for her sister's birthday party. 30% of the 20 cupcakes had sprinkles on top. How many cupcakes had sprinkles?