'Returns the count of the number of the query given
Usage:
${output} =  Row Count  s3db.org_site.id > 0
Log to console  ${output}
52'

@staticmethod
def row_count(statement):

    db = current.db
    s3db = current.s3db
    cmd = ('db(%s).count()' % statement)
    logger.info(('Executing    %s' % cmd))
    count_value = eval(cmd)
    return count_value
