Warning: count() in PHP 7.2

Hello,

I’m getting errors like the following when I set PHP version to 7.2. It is OK with PHP version 7.1.
The errors appear when I want to add image/document to article and add linked articles using plugin. The same type of error also appeared when I wanted to update several plugins.
Warning: count(): Parameter must be an array or an object that implements Countable in…/ecrire/public/iterateur.php on line 284
Warning: count(): Parameter must be an array or an object that implements Countable in …/ecrire/public/aiguiller.php on line 228

Kamran