in the reduction handler, when count is 0, return the data immediately.