Uncaught TypeError: count() in File /usr/local/www/head.inc
This error occurs when the count() function in PHP is used on a variable that is not an array or countable object. In the case of the pfSense file head.inc, the variable $notices is passed to count() but may sometimes be false or another non-Countable type, resulting in the following error:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /usr/local/www/head.inc on line 536