export function countLongWords(
  s: string, minLen: i32
): i32 {
  let count: i32 = 0;
  let wordLen: i32 = 0;
  for (let i = 0; i < s.length; i++) {
    const c = s.charCodeAt(i);
    if (c == 32) {
      if (wordLen >= minLen) count++;
      wordLen = 0;
    } else {
      wordLen++;
    }
  }
  if (wordLen >= minLen) count++;
  return count;
}
