Package freq keeps track of last X seen events. The events themselves are not stored
here. So the Freq type should be added next to the thing it is tracking.
Update updates the number of hits. Last time seen will be set to now.
If the last time we've seen this entity is within now - d, we increment hits, otherwise
we reset hits to 1. It returns the number of hits.