title: How to increment column regard on another column value
body: <p>I have following data:</p>
  
  <pre><code>(1,'20120615 8:03:43 PM'),
  (1,'20120615 8:03:43 PM'),
  (1,'20120615 8:03:48 PM'),
  (1,'20120615 8:03:53 PM'),
  (0,'20120615 8:03:58 PM'),
  (1,'20120615 8:04:03 PM'),
  (1,'20120615 8:04:08 PM'),
  (1,'20120615 8:04:13 PM'),
  (1,'20120615 8:04:18 PM'),
  (0,'20120615 8:04:23 PM'),
  (1,'20120615 8:04:28 PM'),
  (1,'20120615 8:04:33 PM');
  </code></pre>
  
  <p>My desired result is:</p>
  
  <pre><code>(1,'20120615 8:03:43 PM', 1),
  (1,'20120615 8:03:43 PM', 1),
  (1,'20120615 8:03:48 PM', 1),
  (1,'20120615 8:03:53 PM', 1),
  (0,'20120615 8:03:58 PM', 0),
  (1,'20120615 8:04:03 PM', 2),
  (1,'20120615 8:04:08 PM', 2),
  (1,'20120615 8:04:13 PM', 2),
  (1,'20120615 8:04:18 PM', 2),
  (0,'20120615 8:04:23 PM', 0),
  (1,'20120615 8:04:28 PM', 3),
  (1,'20120615 8:04:33 PM', 3);
  </code></pre>
  
  <p>In another words I want to group data except 0 like above order.</p>