Optime count calls in File class