grep -c prints its count and fails when the count is 0, so the fallback echo added a second 0 on a line of its own in host.txt.
grep -c prints its count and fails when the count is 0, so the fallback echo added a second 0 on a line of its own in host.txt.