Fix NoMethodError caused by nil notebookCounts
counts.notebookCounts returns nil when all notebooks are empty