Using Counters

The function of counter is to keep track of numeric values, every time you want to update a value through a counter you can invoke the following API:
counter.increase(float value);

This operation will add the increase value to total element of the counter, and plus one to increase time. Then you can check the current total value and increase times through the following two APIs:

counter.currentTotal();  //retrieve current total value.
counter.increaseTimes(); //retrieve increase times value.