wrote counter methods to track progress