In practice whenever I want to see the number of edges in a waveform, I usually have to setup some kind of two level threshold. This is so things like noise on my signal won't trigger transitions that aren't really there.
Here is one such example by crossrulz that solved my problem which allowed me to find edges, but I was able to define a rising edge as going above 3, or a falling edge is below 1.