netstat -ano | find /c "TCP"

netstat -ano | find /c "UDP"