Merging issue1501 in (which also wants get --count).
One thing I didn't understand when I first replied in msg7353 is that changes
--count does something different (it outputs the number of patches).
I guess we could call this --max-count instead, which seems like it'd be
consistent with changes --max-count