update u
set 
    commentCount=(select isnull(count(*),0) from comment where addUserID=u.userID)
from
     [user] u