Now I have my favourite thing ever, which is a hardcoded table that looks like this:
std::vector<int> data_lengths{
7,12,12,10,10,11,12,11,11,7,7,8,8,1,3,3,7,11,12,11,11,3,8,6,19,6,12,5,12,5,11,9,10,9,6,2,1};
Still, hard to be anything other than happy the data exists for free and easily available