Count with condition

Hello,

I have no clue how to do this:

I need to calculate the consistency of measurment BUT only after first measurment and per each site.

My table and relative results should look like this: