include perms in notes count (bug 997988)