add count function to banner model