return $count - 2; #maybe not the best way of removing . and ..