handle partitions in ESCountTask

dont we have a static EMPTY_RESULT instance? if not maybe it make sense to use one..