graph counter methods