added public check for counting states'