Edited Countpeers example for distributed