Counting two-headed robots