Limit number of connections

How can I limit the number of IP connections through my web-proxy or NAT?

Read the manual
http://www.mikrotik.com/docs/ros/2.8/ip/firewall.content#6.35.3.5