Add riemann.folds/count-unexpired

This adds folds/count. It's not excluding expired events, as per discussion with @aphyr.

[Finishes #165]