Bond counting for ions