while (scanf("%10s %*d %*s %*s %d %*s %*d %*s %*s", permission, &file_size)!= EOF){
//          printf("%d", file_size);

    int count = 0;
    if (file_size > size){
        if (argc == 2){
                count = count + 1;
        }
        // TODO: Call check_permissions as part of your solution to count the files to
        // compute and print the correct value.
        else if (argc == 3){
                int a = check_permissions(permission, required);
                printf("%d\n", a);
                if (a==1){
                        count = count + 1;
                }
        }
    }
    }
    printf("%s", permission);
    printf("%d", count);
print permission and count