calculate number of eye blinks.