Added method for counting friends and enemies