Added the code in access layer and classes to add counters and texts and flags for facts and rules