Update Contacts.java

fixed, 

NOTE: i forget put

editor.putInt("counter", nextIndex);

before 

editor.commit();