Remove need to copy operations array just to get its count.