I have a POST request coming to one of my pages, here is a small segment:
[shipCountry] => United States [status] => Accepted [sku1] => test [produc
Well, if you know that every product will have a corresponding array key matching "productN", you could do this:
$productKeyCount = count(preg_grep("/^product(\d)+$/",array_keys($_POST)));
preg_grep() works well on arrays for that kind of thing.