Merge pull request #2634 from libgit2/cmn/tree-cache-count tree-cache: correct the entry_count calculation