Making an object disappear for a numer of logic ticks

Hi there.
Can you give me any hints on:
how to make on object invisible for a desired number of logic ticks ?
Let’s say I want to press SPACEBAR and it should make my obj disappear for 10 logic ticks.
I was thinking of combinig a delay sensor with a keyboard sensor but I don’t know how…

Here’s a simple logic setup.

There are of course other logic setups you could use such as using states and a delay sensor.

Thank you! Works fine:)