def size(self):
        """Returns the number of elements currently present in the buffer.

        :return: number of elements currently present in the buffer
        """
Returns the number of elements currently present in the buffer.

        :return: number of elements currently present in the buffer
        
petastorm/reader_impl/shuffling_buffer.py