element counting