added sagecounter