 
     $scope.countWithArg = (group, argument, value) ->
       console.log(group)
-      result = (d for d in group.docs when d[argument] == value).length
+      result = (d for d in group.docs when d[argument] == value).length || 0
       return result
 
     # Perform a new search for people or volumes only... NOTE: does not do anything yet

      $scope.partyCount = $scope.getTypeCounts("party", res)
      $scope.volumeCount = $scope.getTypeCounts("volume", res)

      $scope.typeDisplay = [$scope.partyDisplayStr + " (" + $scope.partyCount + ")",
        $scope.volumeDisplayStr + " (" + $scope.volumeCount + ")"]

      console.log("PARTY RESULTS", $scope.partyResults)


        $scope.parseResults(res.data)

    $scope.maxResults = ->
      return Math.max($scope.volumeCount, $scope.partyCount)

    #################################
    # Parse results, the main workhorse function
