Fixed sent/received count and replaced wc -l with -c