#!/usr/bin/perl
use strict;
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser);
print header();
#######test 1
my @dates = qw(02/01/2009
01/31/2009
01/01/2009
01/31/2009
02/20/2009
02/20/2009
02/20/2009
02/20/2009
02/01/2009
);
my %count = ();
my $c=0;
foreach my $date (@dates)
{
$c++;
$count{$date}++;
print "$c - $count{$date} - $date
\n";
}