public static Map<String, Long> getTableCounts() {
        final Map<String, Long> result = new TreeMap<>();

        try {
            return withAccessLock(() -> {
                for (String table : dbAll) {
                    final long cnt = database.compileStatement("SELECT COUNT(*) FROM " + table).simpleQueryForLong();
                    result.put(table, cnt);
                }
                return result;
            });
        } catch (RuntimeException re) {
            Log.w("Exception retrieving tablecounts", re);
            return result;
        }
    }
migrate most recent history waypoints (up to 5)
(temporary workaround for on demand migration of the old "go to" history,
should be removed after some grace period, probably end of 2020?)
main/src/main/java/cgeo/geocaching/storage/DataStore.java