Fix infinite recursion.
Cache count value in projects and tasks view.
Cache count value in expanded project view.