it's not always 9 pins.
you can get pretty creative regarding the number and type of pins (high current, coax) you can fit in that shell:
DE with 2 High current contacts:
https://de.wikipedia.org/wiki/D-Sub#/media/Datei:D-Sub_conne...
DE with 15 contacts ("VGA"):
https://de.wikipedia.org/wiki/D-Sub#/media/Datei:D-SUB_DE-9-...