public int getPageCount(String genreName) throws IOException {
        int pageCount = 1;
        String url = defaultUrl + genreName;
        Document doc = Jsoup.connect(url).get();
        Elements elementLinks = doc.select("tr.navigation > td > a[href]");
        if (!DataUtils.isEmpty(elementLinks) && elementLinks.size() > 1) {
            String digit = elementLinks.get(elementLinks.size() - 2).ownText();
            try {
                pageCount = Integer.parseInt(digit);
            } catch (NumberFormatException ex) {
                logger.warn(digit, ex);
            }
        }
        return pageCount;
    }