Tallier

Purpose

Especially for stats purposes, among others, it is important to be able to tally all instances of something in another manager. This provides that functionality.

Use

Counting is as simple as iterating through whatever you'd like, and upon whatever condition, calling add() to add it. Once done, something like highest() will return the highest tally, or lookup() will return that tally, so you can see how many instances were found.

Requires