<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def initialize_from_sql_cursor(self, sqlcursor):
 """Initializes the TimeSeries's data from the given SQL cursor. You need to set the time stamp format using :py:meth:`TimeSeries.set_timeformat`. :param SQLCursor sqlcursor: Cursor that was holds the SQL result for any given Only the first two attributes of the SQL result will be used. :return: Returns the number of entries added to the TimeSeries. :rtype: integer """

        # initialize the result
        tuples = 0

        # add the SQL result to the time series
        data = sqlcursor.fetchmany()
        while 0 < len(data):
            for entry in data:
                self.add_entry(str(entry[0]), entry[1])

            data = sqlcursor.fetchmany()

        # set the normalization level
        self._normalized = self._check_normalization

        # return the number of tuples added to the timeseries.
        return tuples