When David counted his candy by fours, he had two leftovers. When he counted the same candy by fives he had one leftover. How many pieces of candy does he have?