Added support for logs that count and used it to add a log for counting the total number of rows added in all matrices in F4.