implement availableImpl and skipImpl

count needs to be transformed to a number with toNumber