David has a certain number of stickers. He gives 6 stickers to his friend and then has 22 stickers remaining. How many stickers did David initially have?