Count static method calls and static attribute accesses (part of #19)