add stat counter script