     }
     
     func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-        return currentUserEvents.count
+        print(filteredEvents.count)
+        return filteredEvents.count
     }
     
     func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
         let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! NotificationTableViewCell
                 
-        cell.configureCellWithEvent(currentUserEvents[indexPath.row])
+        cell.configureCellWithEvent(filteredEvents[indexPath.row])
         
         return cell
     }

            count += 1
        }
        
        Tapglue.retrieveEventsFeedForCurrentUserForEventTypes(types) { (feed: [AnyObject]!, error: NSError!) -> Void in
            if error != nil {
                print("\nError retrieveEventsFeedForCurrentUserForEventTypes: \(error)")
            } else {
                dispatch_async(dispatch_get_main_queue(), { () -> Void in
                    self.currentUserEvents = feed as! [TGEvent]
                    self.notificationsTableView.reloadData()
                })
                self.refreshControl.endRefreshing()

    
    override func viewWillAppear(animated: Bool) {
        let defaults = NSUserDefaults.standardUserDefaults()
        checkmarkedEvents = defaults.objectForKey("filterCheckmarks") as! [Bool]
        
        self.loadNotificationFeed()
        
        let filterImage = UIImage(named: "SortFilled")
        let filterButtonItem = UIBarButtonItem(image: filterImage, style: UIBarButtonItemStyle.Plain, target: self, action: #selector(NotificationVC.filterButton(_:)))
        tabBarController?.navigationItem.rightBarButtonItem = filterButtonItem
    }
    
