You can use Do a search for:count to get the count of those Things, and set a field to that number+1.