Arduino UNO is based on the AVR Atmgea328p microcontroller. Which has 3 ports (PORTB = 6 pins, PORTC = 6 pins, and PORTD = 8 pins). Which is a total of 20 digital IO pins across the 3 ports.