    

 ## On this page

  

 

 # bit\_count

 Last update: 02.04.2026 

<a id="ansys.meshing.prime.PartCreationType.bit_count"></a>

#### PartCreationType.bit\_count(/)

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

```pycon
>>> bin(13)
'0b1101'
>>> (13).bit_count()
3

```