OK, let me try to explain in a different way then.
In my site I installed Phoca Gallery and I created 2 categories called Category1 and Category2. My site has 3 registered users, user1, user2 and user3. All 3 users can upload pictures to Category1. The size of the picture that the users will upload can be of any size.
Here's what I want to be able to do:
1) User1 uploads 1 picture to Category1
2) User1 tries to upload another picture to Category1 but Phoca Gallery says "You cannot upload anymore pictures to Category1."
3) User1 tries to upload another picture but this time to Category2 and he can because he does not have any pictures there yet
4) User2 uploads a picture to Category1
5) User2 uploads a picture to Category2
6) User2 tries to upload another picture to Category2, but gets error "you cannot upload anymore pictures to Category2"
7) User1 deletes HIS picture from Category1

User1 uploads a new picture to Category1 (this works because now he less then the maximum of 1 picture for this gallery)
9) User3 uploads a picture to Category1
10) User3 uplodas a picture to Category2
11) User3 uploads a picture to Category2 again, but gets the message "You cannot upload anymore pictures to Category2"
11) User3 uploads a picture to Category1 again, but gets the message "You cannot upload anymore pictures to Category1"
Right now, I can set the maximum size of all pictures that a user can upload. So if I set that to 100K, user1 can upload 1 picture of 100KB or 2 pictures of 50KB or 3 of 30KB and 1 of 10KB and so on. What I need to do is allow user1 to upload only 1 picture but that picture can be of any size.
In other words, I want to configure the maximum number of pictures that a user can upload to a category, not the maximum space that all the pictures that a user can upload.
I hope this helps to explain what I need a little better. If not, let me know and I'll try again
-Mario