How Does Count Function Work Python Code For Prime