'Check if the number rows returned from the submitted where statement
are less x. If there are not, then this will throw an AssertionError.
Usage:
Row count is greater x  (s3db.asset_asset.id > 25)  12
False'

def row_count_less_x(self, statement, x):

    count = self.row_count(statement)
    if (count > int(x)):
        raise AssertionError(('Expected    the    count    to    be    less    than                                                                    %s    from    %s    but    it    was    %d    instead' % (x, statement, count)))
