thread safe sent counter