Firstly, Could you look at the full example on dbfiddle website?
Secondly, Could you look at this answer?
Inside the count clause, There is a condition without Else.
When the condition does not match, What will be put inside the count clause because there is no Else?