simplified Pig exercise to compute ratings stats, like MR exercise