title: SQL: Count each row value in a column and return count into multiple column
body: <p>From this table </p>
  
  <pre>
  D_value
  -------
  A 
  B 
  B 
  C 
  C 
  C 
  </pre>
  
  <p>To display count <code>D_Value</code> into this table</p>
  
  <pre>
  A | B | C
  ---------
  1 | 2 | 3
  </pre>