Keypad code problem

https://ide.codingblocks.com/s/75524 what changes do i need to make for counting number of combinations