Show number of lines of code in current repo and subdirectory

Hi,

I would like to see the total number of lines of code in every repository and subdirectory I visit. For example a main repo could show a total of 100 lines of code, including setup and shell scripts etc., When visiting e.g the src/ directory the number represents only the sloc in that specific directory and so on.

Why? It would help to provide a rapid impression of the complexity inherent to the repo of interest.

In my opinion there is room to present that number somewhere in the directory header as shown in the attached screenshot.