Add number to document selection

This should facilitate "give me the last 10" or "how many do you have"
queries.