int booksInPosession = 0;

public void checkOut() { booksInPosession++; }

public void checkIn() { booksInPosession--; }

In this way booksInPosession will keep the number of books currently...