bugs can be found usually quickly and easily within the same coding session that introduced a new feature, while the code and your recent change are all fresh in mind, and you are in The Zone
That's probably true for 99% of bugs. But every time you say "no bugs" I'm inclined to interrupt and say "you mean, no known bugs!"
There are probably large codebases without bugs; some or all of: qmail, some implementations of cryptographic algorithms, seL4, and some versions of the Space Shuttle in-flight software. But they're very rare. Maybe at some point every single one of the above codebases will have a bug found in it.
That was a good heuristic you suggested, but I think it applies to situations where a bug survives beyond the end of a development session, accidentally.