Add "intervals_count" python bindings