add counting lines and matching whole words