int main(int argc, char** argv) {
    if (!(argc == 2 || argc == 3)) {
        fprintf(stderr, "USAGE: count_large size [permissions]\n");
        return 1;
    }

    // TODO: Process command line arguments.
    //

        int limit;
   limit = strtol(argv[1], NULL, 10);



    char *permission[9];
   // scanf("%10s", permission);
   permission = &argv[2];

   char* files;
   scanf("%32s", files);



    // TODO: Call check_permissions as part of your solution to count the files to
    // compute and print the correct value.


   int return_value = 0;
    scanf("%s", files);
   while (files[0] != 'E' ){
        if (files[0] != 'd' ){
           char *leftover;
           int size_file = strtol(files, &leftover, 10);
           char *file_permission[9];
           file_permission = &files[1];
           if (check_permissions(*file_permission,*permission) != 1 && size_file < limit ){
                return_value ++;
           }
         }
         scanf("%s", files);
   }
        printf("%d", return_value);
    return 0;
}
input permission given from command arguments