changed argument on wc to be compatible with FreeBSD