Swift代码:
import Foundation
let url = NSURL(string: "http://106.75.28.160/UCloud.txt")
var contents = try NSString.init(contentsOfURL: url!, encoding: NSUTF8StringEncoding)
// Get "UCanUup" count
var count = contents.componentsSeparatedByString("UCanUup ").count - 1
运行效果图: