I need to replace the command wc-l because I want to saw a dashboard of the total of messages on a source.
What problem are you trying to solve? What is meant by "total of messages on a source"?