What the pin count means
The pin count describes the display connector on the panel and cable. A 30-pin screen and a 40-pin screen are not interchangeable just because the size is the same.
Many modern laptop panels use eDP connectors. Older systems or special panels may use other connector standards, so always match the old panel and cable.