The user testy's default pseud has 1116 works visible when logged in. However, the blurb in testy's pseud list shows 1164 works, and the blurb in the list of people associated with one of testy's collections also shows 1164 works. There's a similar difference in work counts when logged out: 524 vs. 565. The difference is presumably the number of anonymous and/or unrevealed works.
Both of these pages call Pseud.work_counts_for_pseuds, which relies on the scopes Pseud.public_work_count_for and Pseud.posted_work_count_for. The definitions of these two scopes are:
Note that neither scope checks anonymous/unrevealed status.