/**
 * Given a list of tools and a count, modify the first count elements in the list.
 * The modified element should be the original element concatenated with its count of characters.
 *
 * @param tools A list of tools (strings).
 * @param count The number of elements to modify.
 * @return The modified list of tools.
 */
fun modifyCarpenterTools(tools: MutableList<String>, count: Int): List<String> {

    for (i in 0 until count) {
        val tool = tools[i]
        val modifiedTool = tool + tool.length
        tools[i] = modifiedTool
    }
    return tools
}

// Example usage
/**
 * Given a list of tools and a count, modify the first count elements in the list.
 * The modified element should be the original element concatenated with its count of characters.
 *
 * @param tools A list of tools (strings).
 * @param count The number of elements to modify.
 * @return The modified list of tools.
 */
fun modifyCarpenterTools(tools: MutableList<String>, count: Int): List<String> {
/**
 * Given a list of tools and a count, modify the first count elements in the list.
 * The modified element should be the original element concatenated with its count of characters.
 *
 * @param tools A list of tools (strings).
 * @param count The number of elements to modify.
 * @return The modified list of tools.
 */
fun modifyCarpenterTools(tools: MutableList<String>, count: Int): List<String> {

    for (i in 0 until count) {
        val tool = tools[i]
        val modifiedTool = tool + tool.length
        tools[i] = modifiedTool
    }
    return tools
}

// Example usage