Add count to state manager
have a tilemap store the cachekey