| 表示分隔符,$4表示第四列

awk -F"|"  '{count[$4]++}END{for (ip in count) {printf "%-20s:%d\n",ip,count[ip]}}' access_log