/**
 * This function counts the occurrences of provided characters in a given string,
 * and returns the total count.
 *
 * @param string The string in which to search for characters.
 * @param characters The characters to find in the string.
 * @return The total count of occurrences of characters in the string.
 */
fun countOccurrences(string: String, characters: String): Int {

    var totalCount = 0
    for (char in characters) {
        var count = 0
        for (i in string.indices) {
            if (string[i] == char) {
                count++
            }
        }
        totalCount += count
    }
    return totalCount
}
/**
 * This function counts the occurrences of provided characters in a given string,
 * and returns the total count.
 *
 * @param string The string in which to search for characters.
 * @param characters The characters to find in the string.
 * @return The total count of occurrences of characters in the string.
 */
fun countOccurrences(string: String, characters: String): Int {
/**
 * This function counts the occurrences of provided characters in a given string,
 * and returns the total count.
 *
 * @param string The string in which to search for characters.
 * @param characters The characters to find in the string.
 * @return The total count of occurrences of characters in the string.
 */
fun countOccurrences(string: String, characters: String): Int {

    var totalCount = 0
    for (char in characters) {
        var count = 0
        for (i in string.indices) {
            if (string[i] == char) {
                count++
            }
        }
        totalCount += count
    }
    return totalCount
}