用 Python 编写一个程序,根据给定 DataFrame 中的名称计算记录数