     private var filteredFriends: Results<User>?
 
     private var searchedUsers = [DiscoveredUser]()
+
+    private var countOfFilteredFriends: Int {
+        return filteredFriends?.count ?? 0
+    }
+    private var countOfSearchedUsers: Int {
+        return searchedUsers.count
+    }
 
     //private var searchControllerIsActive = false
     

            contactsTableView.separatorInset = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 0)

            contactsTableView.registerClass(TableSectionTitleView.self, forHeaderFooterViewReuseIdentifier: headerIdentifier)
            contactsTableView.registerNib(UINib(nibName: cellIdentifier, bundle: nil), forCellReuseIdentifier: cellIdentifier)

            contactsTableView.rowHeight = 80


    func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {

        guard indexPath.row > 0 else {
            return
        }

        guard let cell = cell as? SearchedContactsCell else {
            return
        }
