echo $size; // NOT displayed echo $count; // NOT displayed
They are displayed, but they are null. You these variables are picked out of thin air
You have commented out the code where they were declared:
//$count = count(file($file)); // string //$summa += $count; //$size = round(filesize($file)/1024,2);