How do I set score in a for loop, after a an if, and switch statement? : This is some code for an Android program I am currently writing:

                                                                                             
    try {
    reader = new BufferedReader(
    new InputStreamReader(getAssets().open("Words.txt")));
    
    int i = 0;
    int f=0;
    int h=0;
    int k=0;



    String mLine;
    String[] lines = new String[1500];
    while (((mLine = reader.readLine()) != null)) {
    lines[i] = mLine;
    i++;
    }

    for (int q = 0; q < lines.length; q++) {
    if(lines[q].contentEquals((wordEntry.getText()))) {
    int length = wordEntry.length();
    switch (length) {

    case 3:
    f++;
    continue;

    case 4:
    h++;
    continue;

    case 5:
    k++;
    continue;

    }

    } else
                                                           
    score.setText("Incorrect");

    }
    int total=(f*3)+(h*4)+(k*5);
    score.setText(String.valueOf(total));



    } catch (IOException e) {
    e.printStackTrace();
    }
    }
    });
I am attempting to record the amount of times a user's input matches input from a text file.  And if the entries are a length of 3, 4, or 5, the total score should increase by however long the user's entry is.  Instead, what happens is the score label updates each time to either 3, 4, or 5.  Any help will be greatly appreciated! 