students = LOAD 'hdfs://localhost:9000/pig_data/students.txt' USING PigStorage(',')
as (id:int, firstname:chararray, lastname:chararray, phone:chararray, city:chararray, cgpa:int);
group_all = Group students All;
student_count = foreach group_all Generate COUNT(students.cgpa);
Dump student_count;
这是计算学生人数的简单程序。我怎样才能像任何变量名称学生计数值一样获得计数旁边的变量名称