measure ocurrence of things at custom granularities