int goodfiles = 0;

while (scanf("%s, %d, %*s, %*s, %*d, %*s, %*d, %*s, %*s\n", dir, &currsize) != EOF) {
            if (dir[0] == '-') {
                if (currsize > neededsize) {
                    goodfiles = goodfiles + 1;
                    goodfiles = goodfiles - x;
                }
            }
        }
count the number of files with size greater than neededsize
