reset ontologies counter for affected logics

Update the ontologies count for each logic which has updated ontologies
on a parse call.
add ontologies-logic-counter consistency migration.
obey hound.
Merge pull request #1118 from ontohub/1067-fix_ontologies_count

1067 fix ontologies count