Smart technology counts every drop of water