You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "word_frequency", "description": "Calculates the frequency of each word in a text.", "parameters": {"text": {"description": "The input text.", "type": "str"}}}, {"name": "count_occurrences", "description": "Counts the occurrences of each element in a list and returns a dictionary with the counts.", "parameters": {"lst": {"description": "The input list.", "type": "List"}}}, {"name": "is_armstrong_number", "description": "Checks if a number is an Armstrong number.", "parameters": {"num": {"description": "The number to check.", "type": "int"}}}, {"name": "binary_search", "description": "Performs binary search on a sorted list to find the index of a target value.", "parameters": {"arr": {"description": "The sorted list of integers.", "type": "List[int]"}, "target": {"description": "The target value to search for.", "type": "int"}}}]
Count how many times each color appears in the list: ['red', 'blue', 'red', 'green', 'blue', 'blue']
user
assistant
[{"name": "count_occurrences", "arguments": {"lst": ["red", "blue", "red", "green", "blue", "blue"]}}]