How to find bit count