Added limit to countRevisionsBetween() for sanity

* This was causing dozens of DB query timeout errors at WMF

Change-Id: Ie51a491ff5d22c2d84934e83d4b3f690c9dbd595
Merge "Added limit to countRevisionsBetween() for sanity"