Add an available_resources_count method.