https://onezeronull.com/2012/07/10/associative-arrays-with-count-and-clear-methods-the-quickest-solution/
Associative arrays with count() and clear() methods. The quickest solution