HashMap where the key is the tweet name and the value is a TreeMap that maps the tweet timestamp to its occurrence count.recordTweet by inserting the timestamp into the TreeMap for the given tweet name, incrementing the count if the timestamp already exists.getTweetCountsPerFrequency by determining the size of the time chunks based on the frequency, then querying the TreeMap for timestamps within the start and end time.