numstates_from_numareas function

Calculate the number of states, given a certain number of areas