Bob has 20 coins totaling $1.40. If he has only dimes and nickels, how many of each coin does he have?