Couldn't we eliminate a lot of code by ditching the .count files and just record the message count as a value in the db file? It should be easy to create a magic key that can't collide with any words (by using uppercase letters or nonprintable characters). Any reason not to do this?