Skip to main content
1 of 3

C#, 49 bytes

Convert.ToString((ushort)16,2).Count(c=>c=='1');