Create new methods: countStatic(), countObjects(), countNewInstances() and count().
Fix and optimize tests.