src/main/java/seedu/address/ui/autocompleter/Autocompleter.java
private void resetCountingAndMaxIndexIfNeeded() {
        if (!state.equals(AutocompleteState.INDEX)) {
            countingIndex = 1;
        }
    }
/**
     * Resets the value of counting to 1 if the autocompleter was not cycling through indexes
     * int its previous state
     */
Resets the value of counting to 1 if the autocompleter was not cycling through indexes
int its previous state
Resets the value of counting to 1 if the autocompleter was not cycling through indexes int its previous state
private void resetCountingAndMaxIndexIfNeeded() {
        if (!state.equals(AutocompleteState.INDEX)) {
            countingIndex = 1;
        }
    }
private void resetCountingAndMaxIndexIfNeeded ( ) { if ( ! state . equals ( AutocompleteState . INDEX ) ) { countingIndex = 1 ; } }
Resets the value of counting to 1 if the autocompleter was not cycling through indexes
 int its previous state
Resets the value of counting to 1 if the autocompleter was not cycling through indexes int its previous state