added detailed count per branch, slows everything down