say I get a stream of data: {machineCode: "<some string>", lat: <int>, lon: <int>} And I want to display a count of such datums per machineCode. Is there a way to efficiently get all the unique machine codes? or should I just keep track of them while inserting data?