title: UIButton label to display child value count from Firebase
body: <p>I am trying to implement a UIButton title text to display a string of text that will include the number of child values in a Firebase database. On viewDidLoad I would like the button to display the "#" of child values of "place" that exist in the firebase database. See code and firebase data model below. Thanks in advance!</p>
  
  <pre><code>// JSON data model
  {
    "users" : {
      "CmtuebwVrmOG3n4uSsIK1b4FsSN2" : {
        "Places" : {
          "-KhDwZJvca9HedFluJ5O" : {
            "addedBy" : "CmtuebwVrmOG3n4uSsIK1b4FsSN2",
            "place" : "Edinburgh, UK",
            "timestamp" : 1.491678152020824E9
          },
          "-KhE7raDrM2RRs-N6FXg" : {
            "addedBy" : "CmtuebwVrmOG3n4uSsIK1b4FsSN2",
            "place" : "Hong Kong",
            "timestamp" : 1.49168137667081E9
          },
          "-KhFUaEjjhE3RBOw95fc" : {
            "addedBy" : "CmtuebwVrmOG3n4uSsIK1b4FsSN2",
            "place" : "Illinois, USA",
            "timestamp" : 1.491704112134812E9
          },
          "-Kk4EI1D7fuPyY2rvbdW" : {
            "addedBy" : "CmtuebwVrmOG3n4uSsIK1b4FsSN2",
            "place" : "Karnataka, India",
            "timestamp" : 1.494736515236516E9
          }
        },
      },  
  
      var placesTableView: PlacesTableVC?
      var placeList = [Place]()
      var placesDictionary = [String: Place]()
      var tableViewCount: Int?
  
      lazy var placesButton: UIButton = {
          let customButton = UIButton()
          customButton.backgroundColor = UIColor.blue
          // display the number of place values from firebase in the button title text
          customButton.setTitle("\(self.placesTableView?.placeList.count ?? 0) Visited Places", for: .normal)
          customButton.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
          customButton.setTitleColor(.white, for: .normal)
          customButton.addTarget(self, action: #selector(handleShowPlacesVC), for: .touchUpInside)
  
          return customButton
      }()
  </code></pre>