added counter to rake