ocaml: simplification in ocaml.c: op_count variable

OCaml: little simplification in ocaml.c, we can use the variable op_count instead of counting manually.
Add PPC test in test_detail.ml