counter sensor