fixed a bug in updateResCount
Merge branch 'fix-get-login-user-counts' into deploy