一table中 含有一列  brandidbrandid
7
7
2
2
3
4
8
1
4
4
2
我想用一sql求出 
 id      times  (出现次数)    7      2
  2      2
  3      1
  4      3.................