title: how to count rows starting at specific position
body: <p>I want to count all rows that infront of a specific ID, so I can output how many entries are infront of the users entry. 
  I have no clue how to count the rows, starting at the ID of the user (for ex. ID 10).</p>
  
  <p>How to count from ID 10 to ID 1 where status = unpublished</p>
  
  <p>Thx</p>