You are so correct. One of the software system I developed had 100,000+ lines of code. It designed an entire drive train of a machine with 500-750 HP motor, creating a force of upto 3000 tons with 20-30 cycles per minute. Adding votes for a dozen or so candidates should require no more than 50 lines of code, at the most. This is obviously malicious progam code.
I could do it with HTML, a JSON, file and some JavaScript in about 25 lines of code. 5 lines (maybe) if I was hooked up to AngularJS. All of this running without an Internet connection.