Way for us to track the number of lines of code done on the platform

One of our self serve client wants to know Is there a way for us to track the number of lines of code done on the platform? And further if we could compare the number lines of code in different releases. Let me know for both app and cloud.