logic error fixed

Using the counting_iterator I fixed a compiler warning on the difference type in the corresponding iterator_adapter.