View Count not working

You don’t have to, you can implement the “ifNull” function in the same file. What it basically does is it makes sure the view count is 0 in case it was never defined in the database.