class RuboCop::Cop::Performance::Count

def autocorrect(corrector, node, selector_node, selector)

def autocorrect(corrector, node, selector_node, selector)
  selector_loc = selector_node.loc.selector
  range = source_starting_at(node) { |n| n.loc.dot.begin_pos }
  corrector.remove(range)
  corrector.replace(selector_loc, 'count')
  negate_reject(corrector, node) if selector == :reject
end