Support numeric count using the foreach option; this makes the foreach option work the same as the single parameter syntax.