library/MinkWrapper.php
public function getXpathCount($sSelector)
    {
        $page = $this->getMinkSession()->getPage();

        return count($page->findAll('xpath', $sSelector));
    }
public function getXpathCount($sSelector)
    {
        $page = $this->getMinkSession()->getPage();

        return count($page->findAll('xpath', $sSelector));
    }
public function getXpathCount ( $ sSelector ) { $ page = $ this -> getMinkSession ( ) -> getPage ( ) ; return count ( $ page -> findAll ( 'xpath' , $ sSelector ) ) ; }
Returns count of all elements which can be found by xPath.

@param string $sSelector

@return int
Returns count of all elements which can be found by xPath .