Given a positive integer N, print count of set bits in it. For example, if the given number is 6(binary: 110), output should be 2 as there are two set bits in it.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each testcase contains single line of input containing the N.
For each test case, in a new line, print count of set bits in it.
1 ≤ T ≤ 100
1 ≤ N ≤ 106