title: Assign number of occurence of ID for every row
body: <p>I need to add a column to table in which will be tracked number of occurrence of ID to given date (there are about 500 of IDs). The table is ordered by date. The ID can appear only once per day.</p>
  
  <p>example of the table</p>
  
  <p><a href="https://i.stack.imgur.com/dn3Lw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dn3Lw.png" alt="enter image description here"></a></p>