adds StatCounter code