<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _record(self, value, rank, delta, successor):
 """Catalogs a sample."""

        self._observations += 1
        self._items += 1

        return _Sample(value, rank, delta, successor)