[Community Puzzle] How many roads lead to Rome?

Worth mentioning they’re space-separated in the form of A B

next lines: Two integers A and B corresponding to the two cities the path connects.