added count column to bond_analyze code