MT#9269 Add compat num_lines to API pxbdevicemodels

Make it compatible with the 3.4 version to not break LGI