Return the number of rows of a table.
function countTableRows($table_name) { return db_select($table_name) ->countQuery() ->execute() ->fetchField(); }