If we need to find the most common thing in an environment and we have, or can easily obtain a list, we can then use the Counter dictionary class from the collections module. This is very useful on the defensive side, when it comes to counting hostnames, user agents, process names, and the like for incident response, forensics, or hunting use cases. But there can be uses on the offensive side as well. Maybe we’ve collected a large listing of Apache versions and want to count that data. Here is an example below.