Hey Klik,
No need to get all excited about it. It is just.. It is very easy to just ask for it, and then hear how it was done. You will not learn from that however. Considering that you have 100+ posts in this forum, I was pushing you a bit of self-help.
We all went through the initial scrambles (You can look at my first 50 posts, in which I really had no clue). But by trying, asking and working with people who do know you get further. The only thing we ask is that you try yourselve too.
Anyway..
What you need:
define a query:
$query = "Select * from SOMETABLE where SOMECONDITION";
In your case, you want to select a count of *, and you want to group by userto
Give that a little spin, and let us know how it goes.
You are aware of
http://dev.mysql.com/doc/