added count_occurrence with cartesian prodcut pig script