def getCount(self):
        """
        Get record count - NB rs.CursorLocation had to be set to 
        3 (client) to enable this
        """
        try:
            return self.rs.RecordCount
        except:
            return 0

        Get record count - NB rs.CursorLocation had to be set to 
        3 (client) to enable this
        
recipes/Python/528868_Extractimanipulaticlass_Microsoft/recipe-528868.py