Function count adding