fix patent counts