Fix getScrapCount API func