fix up count friends
modified by Xcode