Is there an easy way to count the number of pages is a Word document either .doc or .docx?
You could try the Apache API for word Docs:
It as a method for getting the page count:
public int getPageCount()
Returns: The page count or 0 if the SummaryInformation does not contain a page count.