Counting edge types