private function db_commit_insert() has a bunch of commented out lines. Leaving these commented seems to keep it from counting properly. Fix: Uncomment the commented code in this function.
Another potential bug in counter.php:
check_post_php(), check_post_js(), and check_post_ajax() all end with “$this->check_post( $post_id );”
However, check_post_rest_api() adds a return to this line and ends with “return $this->check_post( $post_id );”