Add ReadCountsByLib class

this is essentially a map of lib names -> integers that supports
operators + and +=
Start using ReadCountsByLib class instead of map: str->int everywhere