Example: Detecting Hotspots on a Stream (HOTSPOTS Function)