code: def libvlc_media_player_get_chapter_count_for_title(p_mi, i_title):
      '''Get title chapter count.
      @param p_mi: the Media Player.
      @param i_title: title.
      @return: number of chapters in title, or -1.
      '''
      f = _Cfunctions.get('libvlc_media_player_get_chapter_count_for_title', None) or \
          _Cfunction('libvlc_media_player_get_chapter_count_for_title', ((1,), (1,),), None,
                      ctypes.c_int, MediaPlayer, ctypes.c_int)
      return f(p_mi, i_titlef libvlc_media_player_get_chapter_count_for_title(p_mi, i_title):
      '''Get title chapter count.
      @param p_mi: the Media Player.
      @param i_title: title.
      @return: number of chapters in title, or -1.
      '''
      f = _Cfunctions.get('libvlc_media_player_get_chapter_count_for_title', None) or \
          _Cfunction('libvlc_media_player_get_chapter_count_for_title', ((1,), (1,),), None,
                      ctypes.c_int, MediaPlayer, ctypes.c_int)
      return f(p_mi, i_title)
docs: Get title chapter count.
      @param p_mi: the Media Player.
      @param i_title: title.
      @return: number of chapters in title, or -1.