This program reads a pattern in row or BLP format. The number of shafts and treadles required is written to standard output.