Nicole spent $18 on a magazine and some notepads. If the magazine cost $6 and each notepad cost $2, then how many notepads did she buy?