bitcnt

Math.Bin.bitcnt(val)

Counts the number of set bits in the binary value.