wrote a customer counter to compare to spark.