How to get count of each column data I am trying the fetch the data of the each user of each month. The table looks like below

----------------------------------------------------------------------------------
| user         |  pm_jan      |       actual_jan    |       pm_feb  | actual_feb |
----------------------------------------------------------------------------------
|   u1         |  w5           |     6               |   0           |    0       |
|   u2         |  w2           |     5               |   0           |    0       |
|   u3         |  w6           |     2               |   w7          |    7       |
|   u4         |   0           |     0               |   w6          |    2       |
|   u5         |   0           |     0               |   w2          |    3       |


In the above table now I want to fetch the total count of  pm and actual data of each month until december.

I tried the below but I am able to fetch only the count of jan month but I need it for every month count

    SELECT COUNT(pm_jan),COUNT(actual_jan) 
    FROM pm
    WHERE  pm_jan&lt;&gt;'' AND actual_jan&lt;&gt;''


What is the best query to approach this method
SELECT SUM(pm_jan &gt; 0) count_pm_jan, 
       SUM(actual_jan &gt; 0) count_actual_jan, 
       SUM(pm_feb &gt; 0) count_pm_feb, 
       SUM(actual_feb &gt; 0) count_actual_feb
FROM pm