api.PropertyGenerator: count queried items query and not only pages

Improvement of fix for:
    https://sourceforge.net/support/tracker.php?aid=3569058
See also:
    https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10647

Change-Id: I80219732da947883f4b204c039d867996c26b37a