Function countPatentsByPubDate() added : retrieves numbers of patents by publication date
Controller uses countPatentsByPubDate()