my @ucase = grep { $_ eq uc() } @words; my $cnt = @ucase;