added BitCount method