This phrase shows strong feelings. It is like saying 'How...!' or 'What a...!' in English. You use it to show surprise, happiness, sadness, or anger.
に、。
How happy I was when I managed to pass that difficult exam!
、、。
How many times have I regretted not talking more with my late mother when she was still healthy.
、。
I can only imagine how many sleepless nights are to come until this project succeeds.
、、。
It's impossible to express in words just how beautiful the sunrise was as seen from the summit.
。。
It's already been an hour past our meeting time. How long I've waited for him!