monthly counts and quantity format functions