logging a counter of an object that counts clicks with keys.