Fixed column counter to work properly with indexes
Merge pull request #1 from Prateem/patch-1

Fixed column counter to work properly with indexes