LPS-32400 - SeleniumBuilderFileUtil.getTargetCount is off by 1
LPS-32400 Simpler logic