I believe there are tools, but I find it easier to just use the Find in Files option and use this regex:
^~(:Wh@//.+)~(:Wh@\{:Wh@)~(:Wh@\}:Wh@)~(:Wh@/#).+
That regex is from here, which also shows how to search for it. It will return a number of matching lines (i.e. the number of lines in your code)