fix tasks count in API