Timing a function call that sets the value count.