Fix the number representing the amount of commits related to a push event

What does this MR do?

Fix the number representing the amount of commits related to a push event

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Please see #37483

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #37483