Fixed incorrect change for line count calculation for dynamic words.

Fixed commit d6cda0d677c3d894b0892f4459af20d44130ab07.