public int countMatches(String dataFile){
        if(localconditions == null)
        {
            localconditions = new String[0];
        }
        MatchData M = new MatchData(dataFile);
        Match m;
        int c = 0;
        Set<Integer> players = new HashSet<Integer>();
        while((m = M.getNext()) != null)
        {
            if(m.getDuration() > 0 && m.winner != -2)
            {
                if(localConditionsMet(m,-1,-1))
                {
                    c++;
                    for(int i : m.playerIds)
                    {
                        players.add(i);
                    }
                }
            }
        }
        System.out.println(players.size() + " players in " + c + " matches");
        M.close();
        return c;
    }