/**
 * This function counts the number of entities within a specified range in a game.
 *
 * @param entityList The list of entities in the game, each represented by an integer.
 * @param start The starting range of entities (inclusive).
 * @param end The ending range of entities (exclusive).
 * @return A message with the number of entities found in the specified range.
 */
fun countEntities(entityList: List<Int>, start: Int, end: Int): String {

    var count = 0

    for (entity in entityList) {
        if (entity in start until end) {
            count++
        }
    }

    return "The number of entities within the specified range is: $count"
}
/**
 * This function counts the number of entities within a specified range in a game.
 *
 * @param entityList The list of entities in the game, each represented by an integer.
 * @param start The starting range of entities (inclusive).
 * @param end The ending range of entities (exclusive).
 * @return A message with the number of entities found in the specified range.
 */
fun countEntities(entityList: List<Int>, start: Int, end: Int): String {
/**
 * This function counts the number of entities within a specified range in a game.
 *
 * @param entityList The list of entities in the game, each represented by an integer.
 * @param start The starting range of entities (inclusive).
 * @param end The ending range of entities (exclusive).
 * @return A message with the number of entities found in the specified range.
 */
fun countEntities(entityList: List<Int>, start: Int, end: Int): String {

    var count = 0

    for (entity in entityList) {
        if (entity in start until end) {
            count++
        }
    }

    return "The number of entities within the specified range is: $count"
}