Change directories to the directory where your target file is located, then type:
replacing filename with the actual name of your file.
wc -l filename
This should output:
$ wc -m test.php 427 test.php
Need to change the case of characters to all caps or all lowercase? This is easily done using Vim. This guide will show you how to change the case of characters in Vim.