You can use the free CartoType tool [ctm1\_info][1] on a CartoType map. Both ctm1_info and the [makemap][2] tool to create CartoType maps are free for non-commercial use. For example, to get the total road length for Sweden:
ctm1\_info ctm1_info sweden.ctm1 -n -aroad/
ctm1_info built using CartoType 6.3.9557
Layer 'road/' has 941,643 objects:
line objects: 939,897; length = 482121.61 km
polygon objects: 1746; area = 3.79 sq km
[1]: https://www.cartotype.com/developers/documentation/510-search-analyse-map
[2]: https://www.cartotype.com/developers/documentation/50-how-to-create-map-files-for-cartotype-ctm1-files