Josie has $3.50 and a total of 34 coins. If she only has quarters (worth 25 cents each) and nickels (worth 5 cents each), how many nickels does Josie have?