A purse contains a collection of quarters, dimes, nickels, and pennies. The average value of the coins in the purse is 17 cents. If a penny is removed from the purse, the average value of the coins becomes 18 cents. How many nickels are in the purse?