The pins are connections between the mobo/expansion card and the memory module. Different mem types use different pin counts(to an extent anyway). The question's kinda hard to answer really.
Examples:
30-pin SIMMS
72-pin SIMMS(FPM, EDO)
144-pin SODIMMS(SDR SDRAM, EDO DRAM)
168-pin DIMMS(SDR SDRAM, EDO DRAM)
168-pin RIMMS(RDRAM)
168-pin QIMMS(RDRAM TERMINATORS(I may be wrong on this))
184-pin DIMMS(DDR SDRAM)
I'm missing some stuff but the list is fairly complete I think. Hopefully this helps.