Accounting for diff between count and array key

Count starts counting at 1, array keys and iteration start at 0. This
adjusts to deal with it.