<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sparql_count(self, query, flush=None):
 """ Count results for a Sparql query. :param query: sparql query string :rtype: int """

        return self.count_statements(query, language='sparql', type='tuples',
            flush=flush)