1 package Moose::Meta::Method::Accessor::Native::Hash::count;
6 use Scalar::Util qw( looks_like_number );
8 our $AUTHORITY = 'cpan:STEVAN';
12 with 'Moose::Meta::Method::Accessor::Native::Reader' =>
13 { -excludes => ['_maximum_arguments'] };
15 sub _maximum_arguments { 0 }
19 my ($slot_access) = @_;
21 return 'scalar keys %{ (' . $slot_access . ') }';