fixed the bug to subtract count from total_book