count is not working