private static int getCount(final String page, final Pattern pattern, final int group) {

        final String sCount = TextUtils.getMatch(page, pattern, true, group, "notFound", false);
        if ("notFound".equals(sCount)) {
            return -1;
        }
        try {
            return Integer.parseInt(sCount);
        } catch (final NumberFormatException nfe) {
            Log.e("Could not parse", nfe);
            return -1;
        }
    }
This method extracts the amount of people watching on a geocache out of the HTMl website passed to it

@param page Page containing the information about how many people watching on geocache
@return Number of people watching geocache, -1 when error
main/src/main/java/cgeo/geocaching/connector/gc/GCParser.java