~ことか
How (very) …!; how many times …!
N2
(どんなに/どれほど/{何度|なんど}) + V / i-adj plain / na-adj + な (である) + ことか
~ことか is an exclamation meaning 'how very …!': the speaker expresses strong joy, sadness, worry or a great degree. It usually pairs with a degree word at the start such as 「どんなに」, 「どれほど」, 「{何度|なんど}」 or 「{何|なん}と」. It follows the plain form, and na-adjectives take 「なことか」. It is somewhat literary, common in writing, letters and speeches. It looks like a question but is not one and its meaning is positive, unlike 「~ものか」 (strong denial).
Examples
日本に来たばかりのころ、同僚の優しい一言にどれほど救われたことか。
When I first came to Japan, how much a kind word from a colleague saved me!
介護福祉士の試験に合格したと聞いて、家族がどんなに喜んだことか。
How happy my family was to hear I'd passed the care worker exam!
この機械の使い方を何度説明したことか。それでもまだ間違える人がいる。
How many times have I explained how to use this machine! And still some people get it wrong.
Exercises
1.地震の夜、家族と連絡が取れなくて、どれほど心配した 。
2.自分の国の料理を職場の皆さんに食べてもらえて、どんなにうれしかった 。