Fixed errant var and deep comparison on total user count calculation