title: Inode usage without df -i
body: <p>I want to automate a remote proccess to know if a machine of mine is running out of inodes (something that happens quite often due to bad configuration...). Sadly it runs on a light weight linux that does not have -i option on the df command, so that option is unaviable. I have done some research and I have encountered some ways to find the folders with the most inodes and similar, but I don't want that. </p>
  
  <p>I need a way (in C or bash) to know how many inodes my system has in total and currently aviable. </p>