def observe(self, amount):
self._sum.inc(amount)<EOL>for i, bound in enumerate(self._upper_bounds):<EOL><INDENT>if amount <= bound:<EOL><INDENT>self._buckets[i].inc(<NUM_LIT:1>)<EOL>break<EOL><DEDENT><DEDENT>
Observe the given amount.