Editing Counts Function