Domanda di colloquio di Rockwell Automation

Count how many bits are turned on in an integer.