title: php native Count for the same value
body: <p>I want to make a program for counting numbers with the same values.</p>
  
  <p>For example, I have a database like this: </p>
  
  <pre><code> INSERT INTO `jawaban` (`registration_number`, `question_id`, `choice`) VALUES
  ('3311501079', 'P002', '1'),
  ('3311501079', 'P003', '2'),
  ('3311501079', 'P004', '3'),
  ('3311501079', 'P005', '4'),
  ('3311501070', 'P002', '1'),
  ('3311501070', 'P003', '2'),
  ('3311501070', 'P004', '3'),
  ('3311501070', 'P005', '4'),
  ('3311501080', 'P002', '1'),
  ('3311501080', 'P003', '2'),
  ('3311501080', 'P004', '4'),
  ('3311501080', 'P005', '3');
  </code></pre>
  
  <p>So, </p>
  
  <ul>
  <li>I want to count like: On question_id p002 with choice number 1 there
  is 3, </li>
  <li>On question_id p003 with choice number 1 there is 0</li>
  <li>On question_id p003 with choice number 2 there is 3</li>
  </ul>
  
  <p>Do you know how to make program count like that?</p>
  
  <p>Please help me resolve this problem.</p>