implemented fibonacci counter for read and write operations