This is my code for retrieving the number of transactions in Stripe API
import stripe customers = stripe.Customer.list() print(len(customers))