Stack counting is a threat-hunting technique that involves monitoring a specific event or activity, counting the number of times it occurs, and then aggregating those results over time. This technique is useful for identifying patterns of behavior that may indicate a threat actor is active in the environment.