apple pie's submission of Count the ACs | CodeChef