使用调用Stripe API的nodej来获取total_count

我正在使用带有nodejs的Stripe获取所有费用的列表,并将total_count包含在结果中。 我这样称呼它:

stripe.charges.list({include: ['total_count'] }, cb) 

但是我从API获得以下错误:

 Unhandled rejection Error: Invalid array 

(离开包含参数返回结果罚款。)

我是否正确指定了包含参数?

我只是试图在我的最后,这个代码正常工作:

 stripe.charges.list( { limit: 3 , "include[]": "total_count"}, function(err, charges) { console.log("Charges : ", JSON.stringify(charges)); } );