added lossy counting