Count occurrences per key awk

Frequency count of the first field (e.g. IP addresses)

awk '{count[$1]++} END {for (k in count) print count[k], k}' access.log | sort -rn