make flash middleware implements countable
Merge remote-tracking branch 'lalop/flash_countable' into release-2.3.3