Lets say there's a landing page. I need to be able to count the number of referrals coming from 4 different URLs. So then I can come back later and see how many came from each.

Can someone show me how this can be done?

Can this be done with javascript using an array and the referrer property or would i have to use PHP

thanks so much in advance for the help!