def searchable_resource_human_name(resource, count: 5)
      resource = if resource.is_a?(String)
                   resource.constantize
                 else
                   resource
                 end

      resource.model_name.human(count: count)
    end
def searchable_resource_human_name(resource, count: 5)
      resource = if resource.is_a?(String)
                   resource.constantize
                 else
                   resource
                 end

      resource.model_name.human(count: count)
    end
Renders the human name of the given class name.

 klass_name - a String representing the class name of the resource to render
 count - (optional) the number of resources so that the I18n backend
         can decide to translate into singluar or plural form.