New API function - statistics