Task
Build `code_golf_charcount(code, ignore_whitespace)` β the scorer for code golf submissions:
- `ignore_whitespace=False` β return `len(code)` (raw, including spaces and newlines).
- `ignore_whitespace=True` β return count of non-whitespace characters only.
- Empty string β `0` (in both modes).
- A character is "whitespace" iff `ch.isspace()` is True (covers space, tab, newline, vertical tab, etc.).
The two modes mirror two leagues: "true golf" (every byte counts) vs "logic golf" (formatting free).