I'm trying to recreate an MS Word document in ConTeXt.  The reason for this is so the final document won't stand out from the others too much, and also so that I can have better control over the layout. 

One thing I'm having difficulty with is the footer, which consists of a rule, followed by

"Name of document on the left << space >> Page n of m"

where "n" is the current page number, and "m" is the total number of pages and is on the right.  Is there an automatic way of obtaining "m", and what's the best way of preceding this footer by  a rule?

Thanks very much,
Alasdair

--
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew