Fix incompatible taskGetCount