public static int getAndUpdateFoundNum(final ILogin conn) {
        int current = conn.getCachesFound();

        if (current == UNKNOWN_FINDS) { // try getting cached information, if counter is unknown
            final FoundNumCounter f = FoundNumCounter.load(conn.getName());
            if (f != null) {
                current = (int) f.getLong1();
            }
        } else { // if caches count is available from the connector, update the cached data
            FoundNumCounter.updateFoundNumAndUserName(conn, current, conn.getUserName());
        }
        return current;
    }
Number of caches the user has found in this connector.
<br>
This is the preferred way to retrieve the correct found number.
It checks the connector data first and uses the DB cache if no connection is possible.
main/src/main/java/cgeo/geocaching/storage/extension/FoundNumCounter.java