Integrated function line counting

Turns out this is pretty slow on longer source files (e.g. IRanges).
Need to speed it up or remove it.