Query regarding grep

In what cases the following command ignores lines in input file:

$ grep -c "^" inputfile

It doesn't ignore any lines, as long as "line" is defined as \n-terminated. (If you import a file from the MAC which terminates lines with \r, you might not get what you expect.)