An homology index generalizing Fuller's index for periodic orbits