A simple option is this (using the multiline flag and not dot-all):
^(?!.*hello.*hello).*hello.*$
First, check you don't have 'hello' twice, and then check you have it at least once.
There are other ways to check for the same thing, but I think this one is pretty simple.
Of course, you can simple match for hello
and count the number of matches...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…