code: def get_matching_xpath_count(self, xpath):
          
          count = len(self._element_find("xpath=" + xpath, False, False))
          return str(count)
docs: Returns number of elements matching ``xpath``
  
          One should not use the `xpath=` prefix for 'xpath'. XPath is assumed.
  
          | *Correct:* |
          | ${count}  | Get Matching Xpath Count | //android.view.View[@text='Test'] |
          | Incorrect:  |
          | ${count}  | Get Matching Xpath Count | xpath=//android.view.View[@text='Test'] |
  
          If you wish to assert the number of matching elements, use
          `Xpath Should Match X Times`.
  
          New in AppiumLibrary 1.4.