Ensure wp_table_count is an integer