Method CountBits CountBits() Returns the number of bits that are 1. Declaration public int CountBits() Returns Type Description int The number of bits that are 1.