small bug fix to return from the get_attr_keys in count