moved counter to wei namespace