IMHO you can just use grep and wc.
In reply to Re: How to split file for threading? by wollmers in thread How to split file for threading? by diyaz