Add counting success of insert

- in ModifyClassFiles, add member successInsert
- in insert functions, this counts number of success