adding autoDetectColumnCount method to Writer class #34