script to count annotations per line of original text