i have some question

I would like to set up a GrovePi motion sensor to track how often my dog goes in the kitchen when I am not home. My question is this, I see examples of how the motion sensors work, but does it or can it save the number of events on the computer?

Of course. However you will need to write the code yourself. Are you planning to use python or scratch or a different language?