Removed the step for counting the elements in the JSON as there was a duplicated step which performed the operation better