I am trying to implement a distributed counter as described here in swift. Here is what I have:
import UIKit import