2 different sql ways here, BUT... you have to put the column names in
select Columns, count(*) From
(select Column1 as Columns from your_table where Column1 = 'Y'
union all
select Column2 as Columns from your_table where Column2 = 'Y'
union all
select Column3 as Columns from your_table where Column3 = 'Y'
union all
select Column4 as Columns from your_table where Column4 = 'Y'
union all
select Column5 as Columns from your_table where Column5 = 'Y'
union all
select Column6 as Columns from your_table where Column6 = 'Y')myTab
group by Column;
or
select value
from yourtable
unpivot
(
value
for col in (column1, column2, column3, column4,...etc)
) un
where col = 'Y'