Dave had some apps on his phone. After deleting 18 of them he had 5 left. How many apps did he have on his phone at the start?