Add column counting in stream reader