Write a short function that computes the number of 1's in the binary expansion of an integer by using the Boolean ``and'' operation.