@Override
    public int getNumUnclaimedHeads(String issuer) throws DataStorageException {
        int count = 0;
        Set<String> keys = this.config.getConfigurationSection("bounties").getKeys(false);

        for (String key : keys) {
            try {
                Integer.valueOf(key);
                ConfigurationSection section = config.getConfigurationSection("bounties").getConfigurationSection(key);
                if (issuer.equalsIgnoreCase(section.getString("issuer"))) {
                    if (section.getLong("turnedin") != 0 && section.getLong("redeemed") == 0) {
                        count++;
                    }
                }
            } catch (NumberFormatException e) {
                this.plugin.getLogger().warning("Picked up an invalid key at bounties." + key);
                continue;
            }
        }

        return count;
    }