Implement editCount