 	getInvitedMemberCount: (project_id, callback = (error, count) ->) ->
 		CollaboratorsHandler.getMemberIdsWithPrivilegeLevels project_id, (error, members) ->
 			return callback(error) if error?
-			return callback null, (members or []).filter((m) -> m.source == Sources.INVITE).length
+			return callback null, (members or []).filter((m) -> m.source != Sources.TOKEN).length
 
 	getInvitedCollaboratorCount: (project_id, callback = (error, count) ->) ->
 		CollaboratorsHandler.getInvitedMemberCount project_id, (error, count) ->

		CollaboratorsHandler.getMemberIdsWithPrivilegeLevels project_id, (error, members = []) ->
			return callback(error) if error?
			for member in members
				if member.id.toString() == user_id.toString() and member.source == Sources.INVITE
					return callback null, true, member.privilegeLevel
			return callback null, false, null


	getInvitedMemberIds: (project_id, callback = (error, member_ids) ->) ->
		CollaboratorsHandler.getMemberIdsWithPrivilegeLevels project_id, (error, members) ->
			return callback(error) if error?
			return callback null, members.filter((m) -> m.source != Sources.TOKEN).map((m) -> m.id)

	USER_PROJECTION: {
		_id: 1,
