#include <stdio.h>
#include <string.h>
int count_chae_occurrences(char c){
    int count = 0;
    for (int i = 0; i < strlen(str); i++){
        if (str[i] == c){
            count++;
        }
    }
    if (count == 0){
        return -1;
    }else 
        return count;
    }