Get max nodes by category ID or category name