Internal server error

500 : count(): Parameter must be an array or an object that implements Countable