pig script to count valid/invalid telemetry documents