Look under the playfield. There's a switch that senses when there's a ball in the outhole. Then the ball ejects, and it passes another switch on the way to the shooter trough. My guesses are: a) that switch is bad or b) the ball isn't pushing the little wire thing down far enough to trigger the switch or c) there's a bad solder joint at the switch or d) the wire from that switch to the ball count relay is bad.
I would start with b. Find the switch and try pushing it and seeing if your ball count increments.
mark