Count sensors to insert properly.