You could write an extension to handle this and listen for the “igniter.cart.adding” event. e.g.
Event::listen('igniter.cart.adding', function ($cart, $cartItem) {
if ($cart->count() >= $YOUR_MAX_AMOUNT)
{
throw new ApplicationException('This will flash on screen as an error');
}
});