added variant of lossy counting