Count Lines of Code in Python, and JavaScript Files, works to a degree on other files types such as .txt.
Only tested in PyCharm on Windows. Not extensively tested.
Update: Added a rust version, and removed an unused line.
Update Jan 2023: Added a c++ version.
Update Feb 12 2023: Added a C# version - does not support JavaScript files.