how many times someone try to access to your computer

for a in `grep “disconnect from” /var/log/secure*|awk ‘{print $9}’|sort|uniq`; do printf `grep $a /var/log/secure*|wc -l`”t””$a”‘n’; done