Joomla website error needs to be fixed

Job ID: 37394544

Budget: $10 – $30 USD

The categories section of my Joomla 4 backend is not working correctly as it is showing incorrect article numbers for most categories and when I click on any article number on a category the following error comes out :

An error has occurred.
0 count(): Argument #1 ($value) must be of type Countable|array, string given.

The articles then also show this error until I log out and login again.

It is a code and DB issue I know - if you can fix quickly send me your offer. Thanks
Related categories: PHP Joomla MySQL HTML