Linux Fundamentals: How many services are listening on the target system on all interfaces

try netstat -tulp | grep LISTEN
or
ss -tulp | grep LISTEN