Detects number of columns in pdf page images.  Based on layoutlmv3.

Used in [marker](https://github.com/VikParuchuri/marker).