PCMNumRegimes function

Number of regimes in a obj