refactored peer count