Helper for creating a counting uuid function.

This is useful in tests to have readable and deterministic uuids.