Added counters for SPI master and slave modules