Added git_treebuilder_entrycount

Conflicts:
	src/tree.c
Merge pull request #1289 from jwiegley/development

Added git_treebuilder_entrycount