Counting Contacts in a Segment