def get_count(count_query):
    """ Get the number of rows with the SELECT COUNT(*) query """
    def get_count_clojure(store):
        """ Get the count in table of database. """
        def tuple_to_count(row, _store):
            """ Extract the first value of the row.  """
            (count,) = row
            return count
        return store.get_one(tuple_to_count, count_query)

    return get_count_clojure