how to get count of elements in selenium code example
Example: count objects in selenium java
int xpathCount = webDriver.findElements(By.xpath("Valid_Xpath")).size();
int xpathCount = webDriver.findElements(By.xpath("Valid_Xpath")).size();