Correcting LineNumberCounter and adding tests to AttributesCounter.