makedbook count, and some fix.