switch rainfall to use the counter