NVIDIA Interview Question

Design a bit conter that output how many bits are on in binary