Looking for a linux function that returns the count of connections in a port.
Was researching about the "lsof", but it only prints connections in a door, and does not return the sum of all connections, for example: if I have two connections at port 80, it will return 2, and not the connections.
Did you try netstat?