3 of 5 deleted 11 characters in body

Count the number of ones in unsigned 16 bit integer

Write some statement(s) in C which will count the number of ones in an unsigned sixteen bit integer.

For example, if a variable s = 1337, then set ones to 6 because 1337 as a sixteen bit binary number is 0000010100111001, which contains six ones.