Issue #3067057 by bucefal91: Warning: count(): Parameter must be an array or an object that implements Countable