Dylan had 7 cookies. Rylee gives him 10 more. Rocky accidentally ate 4 of those cookies cause he thought it was his. So Dylan only has 13 cookies left. If Rocky already had 7 cookies, how many cookies did he have in total including the ones he ate?