Getting error when I migrate my site to another server

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

the above error has occurred when I have migrate my website from one pc to another

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
In which file are you seeing this error and on what line?
Gondwana replied on at Permalink Reply
Gondwana
I'm guess that the new server is running a different version of php. The core version you're using, and/or an add-on, may not be compatible with the version on the new host.