perl -lane'$h{$F[0]}++}{print scalar keys %h' /path/to/apache/logs/access_log