Verifies that the page contains the given number of elements located by the given XPath.