added count functions