Try: Your text has {\the\noflines} lines.

Your text has \the\noflines\ lines.  % works also

Thanks.

--
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int: english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home