class S2Utils {

    static int getNumBandsToRcCorrect(String[] sourceBandNames) {
        int numBandsToRcCorrect = 0;
        for (String sourceBandName : sourceBandNames) {
            for (String bandToRcCorrect : SensorConstants.S2_MSI_SPECTRAL_BAND_NAMES) {
                if (sourceBandName.equals(bandToRcCorrect)) {
                    numBandsToRcCorrect++;
                    break;
                }
            }
        }
        return numBandsToRcCorrect;
    }

}