CereStim 96 API  RS-0075 Rev 3.00
BSTIMAPI UINT8 getNumberModules ( )

This value is based on the hardware of the particuliar model of the CereStim 96. Again the micro and macro versions of the stimulator have different values,

Returns
Number of Modules installed