generic pig script to count row in alias