Added possibility to pulse x times

Signed-off-by: Richard Jung <r.jung@jungit.com>