'Returns the count of the number of entries of a table
Usage:
${output} =  Count Entries Of Table  org_site
Log to console  ${output}
50'

@staticmethod
def count_entries_of_table(table_name):

    db = current.db
    s3db = current.s3db
    logger.info(('Counting    the    entries    in    table    %s' % table_name))
    table = s3db[table_name]
    count_value = db((table.deleted != True)).count()
    return count_value
