determine the number of bonding pairs​