Which would get this done fastest, php or mysql?

Hey. I’m counting how many people are currently surfing on each page at the current time. I have my query that returns where each ip is located at the current time. What I’m trying to do it count how many people are on each page, so i pretty much have to count how many results have which page they’re on.

My questions is…

How should i go about doing this? Should i use mysql to use a COUNT() on each different ip, or should i put it in an array or something and count how many ones have each page?

Thanks.

_naaman