Add GlobalCounter struct.

This can be used for counting of meshes or variables etc.
Use GlobalCounter<Mesh> for mesh id.
Add UniqueMeshId test.