Correctly display the team member count on profile page.

Fixes #1295.