<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def number(self):
 """ Returns the number of batches the batched sequence contains. :rtype: integer. """

        return int(math.ceil(self.total_size / float(self.size)))