1、不是可以直接统计?
http://www.foxtable.com/webhelp/scr/0158.htm
2、写代码也可以
http://www.foxtable.com/webhelp/scr/0681.htm
http://www.foxtable.com/webhelp/scr/2720.htm