simple for loop

i have the following process running in background:
when i give "ps -lef"
------------------------------------------------------------------------

user2
user1
user1
user3
user1
user4
user5
user4
user3
user4
user2
user1
user1
user3
user1
user4
user5
user4
user3
user4
----------------------------------------------------------------------

i have the script

#!/bin/ksh

for i in user1 user2 user3 user4 user5
do
count=0
((count=`ps -lef | grep -c $i` - 1))

echo $i ech $count
done
-------------------------------------------------------------------
its giving o/p as
user1 6
user2 2
user3 4
user4 6
user5 2
---------------------------------------------------------------

i want to use only "user" in "for" loop as
-------------for i in user-----------------

and it should count the user for 1 to 5..

can u help me in this.....is there any way

still not getting the o/p

What o/p are you expecting? Your question makes no sense. What is the point of the for loop if you are only passing in a string called "user"?
for i in 1 2 3 4 5 makes sense, not for i in user.

look i want to just access user1............................user5,by just writting user in for loop..........

i m not getting how to use this logic in my for loop