Allow for different count functions in admin

Allow for a table_count_function in the list section of the generator config. If the method
is defined on the table, it will override the default count function and use your custom
function instead.