Can access file's index which is the output from ls-l by file[i][4]
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.
    char *file;
    scanf("%s", file)
    // TODO: Call check_permissions as part of your solution to count the files to
    // compute and print the correct value.
    int count = 0;
    for(int i = 0; i < sizeof(file); i++){
        if(file[i][4] >= argc){
            if(argv){
                if(check_permissions(file[i][0],*argv) == 0){
                    count += 1;
                }
            }
            else{
                count += 1;
            }
        }
    }
    printf("%d\n",count);
    return 0;
}