public static int countStepInFile(String path) throws IOException {
StepCounter counter = new StepCounter();
FileSource source = FileSourceFactory.sourceFor(path);
source.addElementSink(counter);
source.readAll(path);
return counter.getStepCount();
}
protected int step;