give number of instances for given state if state is given