Complete Phase 2

return the number of distinct execution slice