define methods in Library to count shelves and books