Google Interview Question

You are given an integer,count its 1 bits in binary representation.