python learn: this script count function in python script