Function countSetBits