Valeo interview question

Write a code to count how many rise edges.