Port range summary

Merge overlapping numeric port ranges into a compact inventory and count distinct ports.