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

The following error is coming , if you guys have any solution  please let me know , i have recently updated from php 5.6 to 7,2 in the higher version of php 7.2 the below error is coming 


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



 Should we upgraded to  other php version, please suggest








Comments