Push button counting
You need to be aware that as written your code will spin around the while loop dozens if not 100's of times seeing the one or the other of the switches pressed. Since your IF statement only checks for the '0' level of the switch input it will detect for as long as the input is active.

So you will need to change your coding strategy some. Each time around the WHILE loop you need to look for the 1 -> 0 transition of the switch input. This can be done by keeping the input value from the previous transit of the loop in a history variable. The the detect logic become:
    If previous bit == 1 and current bit == 0 Then Detect active.

You should become familiar with switch bounce. You will most likely also need to implement switch bounce filtering in the software unless you have taken steps in the hardware part of the design to assure no bounce signals get to the MCU pin.