Can someone tell me how to do the following inside a unix script?

I have a file and can do a wc -l on it....say the count is 123 lines.

#wcl /tmp/file
>123

I would then like to divide this...