Statistics for Multilingual Grammatical Error Detection And Its Applications to Prompt-Based Correction