I have a table like this.
id ___ d1 ___ d2 ___ d3 ___ d4 ___ d5 ___ d6 ___ d7 ___ d8
----------------------------------------------------------
01 ___ XX ___ "" ___ "" ___ "" ___ "" ___ "" ___ "" ___ "" (There are 7 ""s)
02 ___ XX ___ XX ___ XX ___ "" ___ "" ___ "" ___ "" ___ "" (There are 5 ""s)
03 ___ XX ___ XX ___ "" ___ "" ___ "" ___ "" ___ "" ___ "" (There are 6 ""s)
04 ___ XX ___ "" ___ "" ___ "" ___ "" ___ "" ___ "" ___ "" (There are 7 ""s)
I want to see an output like this:
id ___ count
------------
01 ___ 7
02 ___ 5
03 ___ 6
04 ___ 7
How can I do that? Simply, I want to count empty strings but on same row.