so lets say I have
| id | value |
--------------
|  1 |   A   |
|  2 |   B   |
|  3 |   B   |
|  4 |   A   |
|  5 |   A   |
and then run the following SQL statment
SELECT value, COUNT(*) AS `num` FROM test2 GROUP BY value
I would get A: 3 and B: 2
Great, but what If I wanted to combine from multiple columns
| id | value | Value2 | Value 3|
---------------------------------
|  1 |   A   |   A    |    A   |
|  2 |   B   |   A    |    B   |
|  3 |   B   |   B    |    B   |
|  4 |   A   |   A    |    A   |
|  5 |   A   |   B    |    A   |
in the above A:9 B:6. Currently I can just run the above statment 3 times, and then add the value on the php side. But I figured there might be a neat little trick to get it all done in 1 statement.