Temporary counter variables added.

To see how often '-calc-' function are called during visibility changes.
Temporary counter variables removed again.