fixed print_inline
add function to count stims