Thermodynamic cost for precision of general counting observables | Synapse