my $count = keys %myobjtdets; - hash created from query print "$count"; - results in the number 63