How many pins does PS2 mouse and keyboard connector have?

PS/2 keyboard has what is called Mini-Din 6 pins and a mouse has DIN 5 pins.