How to get lines of code removed from a git repository

In many companies, there is an incentive to remove old code and refactor to use newer technologies or languages to make the solution smaller, easier to comprehend and maintain. If you are in a company that has goals to remove old code, it may be the case where you need