Incremental collection IDs (best method?)

I’d like to have small IDs, f.e. base 64, incrementing on each new document. Is there a simple way to set this up?

One method I thought about is tracking the latest incremented ID in a separate collection called IncrementedIds where each document in the collection contains the latest incremented ID for another collection.

Upon creating/inserting a new document to some collection, an atomic increment operation needs to happen for the respective value in the IncrementedIds collection. But this means that to insert a new document requires two DB operations instead of one.

Is there some other clever way to do this, or some Mongo setting to make Mongo increment itself?

I’d like to use base 62 alphanumeric incrementing IDs, so that my IDs will be small for a long long time, so that when they are shown in places (f.e. URLs) there aren’t excessive characters to look at.

f.e. example.com/?item=3e&cat=sM9&opts=a,f,9 instead of having loooooooong IDs there.