How many number of ports are in a computer?

There are total 65535 ports in a computer, in which 1024 ports are well known ports.