I have this file :

```
933|Mahinda|Perera|male|1989-12-03|2010-03-17T13:32:10.447+0000|192.248.2.123|Firefox
1129|Carmen|Lepland|female|1984-02-18|2010-02-28T04:39:58.781+0000|81.25.252.111|Internet Explorer
4194|Há»“ ChÃ­|Do|male|1988-10-14|2010-03-17T22:46:17.657+0000|103.10.89.118|Internet Explorer
8333|Chen|Wang|female|1980-02-02|2010-03-15T10:21:43.365+0000|1.4.16.148|Internet Explorer
8698|Chen|Liu|female|1982-05-29|2010-02-21T08:44:41.479+0000|14.103.81.196|Firefox
8853|Albin|Monteno|male|1986-04-09|2010-03-19T21:52:36.860+0000|178.209.14.40|Internet Explorer
10027|Ning|Chen|female|1982-12-08|2010-02-22T17:59:59.221+0000|1.2.9.86|Firefox

```

and with this order 
`./tool.sh --browsers -f <file>`

i want to count the number of the browsers in specific order , for example :

```
Chrome 143
Firefox 251
Internet Explorer 67

```

i use this command : 

```
   if [ "$1" == "--browsers" -a "$2" == "-f"  -a  "$4" == "" ]
then
 awk -F'|' '{print $8}' $3 | sort | uniq -c | awk '  {print $2 , $3 , $1} '
fi

```

but it works only for 3 arguments. How to make it work for many arguments? for example a browser with 4 words or more