rename built-in function count to table_count

"count" is a common used variable in most script,
so it's not suit for built-in function as default,
rename it to table_count