When working with Selenium, I typically create a list of web elements to study them. However, when using Cypress, I utilize the .each() method for iterating through elements with the same name. Sometimes though, I only need to find out how many elements share the same name so that I can use this number in other parts of my code.
Is there a way to achieve this in Cypress?