assigned global_counter in reciever()