Fix observations count

The #record method can be called more than once per value, so its
unsuitable to track the number of observations at the moment.

While it would be beneficial to not create too many Sample objections
for performance reasons, this change solves the observation counting
for now.