def _select_query_get_count_query_string(query, model):
    """Returns the count query string that returns the number of results that will be read by a select query"""
    count_query = 'SELECT COUNT(*) FROM {table_name} {query_string}'.format(
        table_name=model.get_table_name(), query_string=query.query_string)
    
    return '"' + count_query + '"'