/**
 * You are a police officer trying to solve a case. You have a list of numbers representing the amount of stolen items found in different locations. Your task is to count how many locations have a certain number of stolen items.
 *
 * @param numbersList A list of integers representing the amount of stolen items found in different locations.
 * @param target The number you want to count how many locations have.
 * @return The count of how many locations have the specified number of stolen items.
 *
 * Example:
 * numbersList = listOf(2, 4, 6, 4, 5, 8, 4)
 * target = 4
 * Output: 3
 */
fun additionCount(numbersList: List<Int>, target: Int): Int {

    var count = 0
    for (number in numbersList) {
        if (number == target) {
            count++
        }
    }
    return count
}
/**
 * You are a police officer trying to solve a case. You have a list of numbers representing the amount of stolen items found in different locations. Your task is to count how many locations have a certain number of stolen items.
 *
 * @param numbersList A list of integers representing the amount of stolen items found in different locations.
 * @param target The number you want to count how many locations have.
 * @return The count of how many locations have the specified number of stolen items.
 *
 * Example:
 * numbersList = listOf(2, 4, 6, 4, 5, 8, 4)
 * target = 4
 * Output: 3
 */
fun additionCount(numbersList: List<Int>, target: Int): Int {
/**
 * You are a police officer trying to solve a case. You have a list of numbers representing the amount of stolen items found in different locations. Your task is to count how many locations have a certain number of stolen items.
 *
 * @param numbersList A list of integers representing the amount of stolen items found in different locations.
 * @param target The number you want to count how many locations have.
 * @return The count of how many locations have the specified number of stolen items.
 *
 * Example:
 * numbersList = listOf(2, 4, 6, 4, 5, 8, 4)
 * target = 4
 * Output: 3
 */
fun additionCount(numbersList: List<Int>, target: Int): Int {

    var count = 0
    for (number in numbersList) {
        if (number == target) {
            count++
        }
    }
    return count
}